<?php

namespace App\Service;

use App\Model\QmGameAccount;

class AccountService
{
    public function login($token,$plant){
        //根据TOKEN获取账号信息
        $thr_id = 'guoxiaofei';
        $plant = 'google';
        $info = $this->getInfo($thr_id,$plant);
    }
    private function register(){

    }
    private function getInfo($thr_id,$plant){
        $info = QmGameAccount::query()->where('thr_id',$thr_id)
            ->where('plant',$plant)->first();
        return $info;
    }
}